package com.czkt.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.czkt.mapper.SsAuthorityMapper;
import com.czkt.pojo.SsAuthority;
import com.czkt.pojo.SsAuthorityRoleRel;
import com.czkt.service.SsAuthorityService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

@Service
public class SsAuthorityServiceImpl extends ServiceImpl<SsAuthorityMapper, SsAuthority> implements SsAuthorityService {
    @Override
    public List<SsAuthority> getListById(Set<Long> id) {
        LambdaQueryWrapper<SsAuthority> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.in(SsAuthority::getId,id);

        return baseMapper.selectList(queryWrapper);
    }
}
